package br.com.fatecpg.jdbc.web;

import java.sql.Connection;
import java.sql.DriverManager;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Taynah
 */
public class Conexão {
    public static Connection getConnection(String user, String pass) throws Exception{
        Class.forName("oracle.jdbc.driver.OracleDriver");
        String url="jdbc:oracle:thin:@localhost:1521:XE";
        return DriverManager.getConnection(url,user,pass);
    }
    
}
